package com.qf.hospital.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qf.hospital.serialize.Integer2BooleanJsonSerialize;

/**
 * @author ASUS
 * @version V1.0
 * @Project hospital
 * @Package com.qf.hospital.vo
 * @Date 2021/10/19 10:59
 */
public class LayUIDTreeVO {

    /**
     * 标识
     */
    private Integer id;

    /**
     * 父节点id
     */
    private Integer parentId;

    /**
     * 标题
     */
    private String title;

    /**
     * 0-不展开,1-展开
     */
    @JsonSerialize(using = Integer2BooleanJsonSerialize.class)
    private Integer spread;

    /**
     * "1" - 勾选，"0" - 不勾选
     */
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private String checkArr;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getSpread() {
        return spread;
    }

    public void setSpread(Integer spread) {
        this.spread = spread;
    }

    public String getCheckArr() {
        return checkArr;
    }

    public void setCheckArr(String checkArr) {
        this.checkArr = checkArr;
    }

    public LayUIDTreeVO(Integer id, Integer parentId, String title, Integer spread, String checkArr) {
        this.id = id;
        this.parentId = parentId;
        this.title = title;
        this.spread = spread;
        this.checkArr = checkArr;
    }

    public LayUIDTreeVO() {
    }
}
